
#ifndef MSTP_LOG_H
#define MSTP_LOG_H

#include "bridge.h"

void MSTP_Log (BRIDGE* bridge, int port, int tree, const char* format, ...);
void MSTP_FlushLog (BRIDGE* bridge);

#define LOG(b,p,t,...)		((void) ( !(b)->loggingEnabled || (MSTP_Log(b,p,t,__VA_ARGS__), 0)))
#define FLUSH_LOG(b)		((void) ( !(b)->loggingEnabled || (MSTP_FlushLog(b), 0)))

#endif
